﻿using Domain;
using Microsoft.EntityFrameworkCore;

namespace Infrastructure
{
    public class MyDbContext : DbContext
    {
        private readonly DbContextOptions options;

        public MyDbContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        }
        public DbSet<UserModel> Users { get; set; }
        public DbSet<RegionModel> Region { get; set; }
        public DbSet<ProvinceModel> Province { get; set; }
        public DbSet<CityModel> Citie { get; set; }
        public DbSet<RoleModel> Role {  get; set; }
        public DbSet<UserRoleModel> UserRole { get; set; }
        public DbSet<MenuModel>  Menu { get; set; }
        public DbSet<RoleMenuModel> RoleMenu { get; set; }
        public DbSet<LeaveModel> Leave { get; set; }
        public DbSet<DeionModel> Deion {  get; set; }
    }
}
